import numpy as np

def generate_fake_data():
    data = [1,2,3,4,5,6,7,8]
    data = np.ndarray(data)
    d24 = data.reshape(2,4)
    print(d24)

    data = np.array([1,2,3,4,5,6,7,8])
    d24 = data.reshape(2,3)
    print(d24)


def test1():
    x_array = np.array([])
    print(x_array)

    x_array = np.append(x_array, [])
    print(x_array)

    num = 10
    for i in range(num):
        x = np.arange(2 * 2)
        x_array = np.append(x_array, x)

    print(x_array)


def test2():
    num = 100
    x_array = np.array([])
    for i in range(num):
        x = np.arange(32*32)
        x1 = x.reshape((32, 32))
        x_array = np.append(x_array, x1)
    return x_array


if __name__ == '__main__':
    test1()


